package com.icss.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author safe
 * @create 2022-08-31 14:09
 * @introduction
 */
@Service
@FeignClient(value = "CLOUD-HYSTRIX-PROVIDER-LOGISTICS",fallback = OrderFallbackService.class)
public interface OrderService {

    @GetMapping("/logistic/hystrix/TimeOut/{id}")
    String logisticTimeout(@PathVariable("id") Integer id);

    @GetMapping("/logistic/hystrix/success/{id}")
    public String logisticSuccess(@PathVariable("id") Integer id);

}
